package com.example.demo1.Bean;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.example.demo1.utils.LocalDateTimeConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserBean {

    @ExcelProperty(value = "学号", index = 0)
    private Integer userId;

    @ExcelProperty(value = "姓名", index = 1)
    private String userName;

    @ExcelProperty(value = "密码", index = 2)
    private String userPw;

    @ExcelProperty(value = "性别", index = 3)
    private String userSex;

    @ExcelProperty(value = "电话", index = 4)
    private String userPhone;

    @ExcelProperty(value = "地址", index = 5)
    private String userAddress;
    @ExcelIgnore
    private boolean login;

    @ExcelProperty(value = "最后打卡时间", index = 6, converter = LocalDateTimeConverter.class)
    private LocalDate lastdate;

    @ExcelIgnore
    private String role;
}
